//
//  HotListModel.m
//  WisdomZhuHai
//
//  Created by JasonLee on 14/12/9.
//  Copyright (c) 2014年 wyd. All rights reserved.
//

#import "HotListModel.h"

@implementation HotListModel

#pragma  mark - 根据字典初始化对象
- (HotListModel *) initWithDictionary:(NSDictionary *)dic{
    if(self = [super init]){
        self.id = [dic[@"id"] integerValue];
        self.title = dic[@"name"];
        self.img_url = dic[@"pic_url"];
        self.detail = dic[@"small_intro"];
    }
    return self;
}

#pragma mark - 初始化对象（静态）
+ (HotListModel *) statusWithDictionary:(NSDictionary *)dic{
    HotListModel *model = [[HotListModel alloc] initWithDictionary:dic];
    return model;
}

/*
- (NSString *) source{
    NSString *string = [[NSString alloc]initWithFormat:@"%@ %@ %@ %@", self.id, self.title, self.img_url, self.detail];
    return string;
}*/

@end
